﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Guestbook.IBiz;
using Microsoft.Practices.Unity;
 
using oo;
 


namespace LazyRabbit.WebApp.Controllers
{
    public class HomeController : Controller
    {
        /// <summary>
        /// 这个用Name指定实现类
        /// </summary>
        [Dependency("Guestbook.Biz.GuestbookBiz")]
        public IGuestbookBiz guestbookBiz { get; set; }
        

        //
        // GET: /Home/

        public ActionResult Index()
        {
           // ViewBag.SiteInfo = Application.GetSiteInfo();
            UserGroup guestBook = new UserGroup()
         {
             NameGroup = "12333",
             addrees = "ffff",
             UserID = 4


         };
            guestbookBiz.Save(guestBook);
           // guestbookBiz.GetByID(UserGroupTable.ID.Equal(1));
          
            return View();
        }

    }
}
